﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MyTime.ProviderFactory
{
    /// <summary>
    /// http://dotnetslackers.com/articles/designpatterns/HowToWriteAProviderModel.aspx
    /// </summary>
    public abstract class MyTimeProviderBase : System.Configuration.Provider.ProviderBase
    {
        public abstract void AddTask(Entities.ITimeItem timeItem);
        public abstract IEnumerable<Entities.ITimeItem> GetAllTime();
        public abstract IEnumerable<ProviderFactory.Entities.ITimeItem> GetTodaysTimeItems();
        public abstract bool ImportOldData(double version, params string[] param);
        public abstract ProviderFactory.Entities.ITimeItem GetCurrentTimeItem();
        public virtual System.Collections.Specialized.NameValueCollection Settings { get; set; }

        public override string Description
        {
            get
            {
                return "Default description from MyTimeProviderBase";
            }
        }
        public override string Name
        {
            get
            {
                return "Default name from MyTimeProviderBase";
            }
        }
    }
}
